﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("退库单明细")]
    [Table("t_returnstockvoucherdetail")]
    [Index(nameof(VoucherCode))]
    public class ReturnStockVoucherDetail : VoucherDetailBase
    {
        public ReturnStockVoucherDetail(Guid keyId)

        {
            this.Id = keyId;
        }

        public ReturnStockVoucherDetail()
        {

        }
        [Comment("退库数量")]
        [Column(TypeName = "decimal(18,4)")]
        public decimal RetCount { get; set; }

        /// <summary>
        /// 供应商id
        /// </summary>
        /// <remarks></remarks>
        [Comment("供应商Id")]
        public Guid? SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary> 
        [Comment("供应商名称")]
        [MaxLength(200)]
        public string SupplierName { get; set; }

        [Comment("条形码")]
        [MaxLength(200)]
        public string BarCode { get; set; }


        [Comment("UDI编码")]
        [MaxLength(200)]
        public string UdiCode { get; set; }
        [Comment("高值唯一码")]
        [MaxLength(200)]
        public string OnlyBarCode { get; set; }

    }
}
